package epoch.game.core.netty;

import epoch.game.core.buffer.IBuffer;
import epoch.game.core.buffer.IBufferFactory;

public class NettyBufferFactory implements IBufferFactory{

	private static int default_size=512;
	
	public IBuffer buffer(int initSize){
		return new NettyBuffer(initSize);
	}

	public IBuffer buffer(){
		return buffer(default_size);
	}

	public IBuffer buffer(byte[] bytes){
		return new NettyBuffer(bytes);
	}
}
